/***************************************************************************
 *            thread_test.c
 *
 *  Mon May 21 22:15:14 2007
 *  Copyright  2007  kf701
 *  Email <kf701.ye AT gmail.com>
 ****************************************************************************/


#include <unistd.h>
#include <syslog.h>
#include "kf701.h"

void *thread_main(void *data);

int main()
{
	debug_verbose = 4;

	/* thread test */
	int rr = 2;
	create_normal_thread(thread_main, &rr);

	for( ; ; )
		pause();
}

void *thread_main(void *data)
{
	sys_debug("%s,%d: data = %d \n", __func__, __LINE__,*(int*)data);
	sleep(1);
	exit(0);
}
